package arithmetic.leetCode.yi;

/**
 * Created with IntelliJ IDEA. Description: User: yilin Date: 2019-07-30 Time: 16:16
 */
public class DeleteNode {

    public class ListNode {

        int val;
        ListNode next;

        ListNode(int x) {
            val = x;
        }
    }

    public void deleteNode(ListNode node) {
        node.val = node.next.val;
        node.next = node.next.next;
    }
}
